﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Master/Site_InnerWeb.master" AutoEventWireup="false"
    CodeFile="Dashboard.aspx.vb" Inherits="private_secure_members_pages_Dashboard" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <style type="text/css">
        .style1
        {
            width: 55%;
        }
        .style2
        {
            width: 344px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    &nbsp;
    <table id="table1" class="style1">
        <tr>
            <td class="style2">
                &nbsp;<asp:Label ID="lblMessage" runat="server" Visible="False"></asp:Label>
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style2">
                Choose an Organisation/Business/Club/Group?
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style2">
                <asp:DropDownList ID="ddlEntity" runat="server" Width="200px" AutoPostBack="True">
                </asp:DropDownList>
                <asp:ObjectDataSource ID="MyEntityODS" runat="server" OldValuesParameterFormatString="original_{0}"
                    SelectMethod="GetData" TypeName="LogginsLogDSTableAdapters.usp_GetPersonEntityListByPersonIdTableAdapter">
                    <SelectParameters>
                        <asp:Parameter DbType="Guid" Name="UserId" />
                    </SelectParameters>
                </asp:ObjectDataSource>
                <asp:ObjectDataSource ID="MyEntityODS0" runat="server" OldValuesParameterFormatString="original_{0}"
                    SelectMethod="GetData" TypeName="LogginsLogDSTableAdapters.usp_GetPersonAssociateEntityListByPersonIdTableAdapter">
                    <SelectParameters>
                        <asp:Parameter DbType="Guid" Name="UserId" />
                    </SelectParameters>
                </asp:ObjectDataSource>
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style2">
                What do you want to say?
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style2">
                <asp:MultiView ID="MultiViewContent" runat="server">
                    <asp:View ID="ViewContent_Adhoc" runat="server">
                        <asp:Label ID="Label12" runat="server" Text="Subject:"></asp:Label>
                        <br />
                        <asp:TextBox ID="TextBoxContentSubject" runat="server" MaxLength="30"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label8" runat="server" Text="Text Message:"></asp:Label>
                        <br />
                        <asp:TextBox ID="TextBoxContentMessage" runat="server" MaxLength="130" Rows="4" TextMode="MultiLine"
                            Width="267px" ToolTip="Enter the text for your SMS Text Message here">[Replace this text with your own text message]</asp:TextBox>
                    </asp:View>
                </asp:MultiView>
                <br />
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style2">
                Who do you want to <strong>Contact</strong>?
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style2">
                <asp:RadioButton ID="rdoContactMobile" runat="server" Text="Mobile Number" GroupName="rdoContact"
                    AutoPostBack="true" OnCheckedChanged="rdoContactMobile_CheckedChanged" Checked="True" />
                <asp:RadioButton ID="rdoContactEmail" runat="server" Text="Email Address" GroupName="rdoContact"
                    AutoPostBack="true" OnCheckedChanged="rdoContactEmail_CheckChanged" />
                <asp:RadioButton ID="rdoContactList" runat="server" Text="A List" GroupName="rdoContact"
                    AutoPostBack="true" OnCheckedChanged="rdoContactList_CheckChanged" />
                <br />
                <asp:MultiView ID="MultiViewContact" runat="server">
                    <asp:View ID="ViewContact_Mobile" runat="server">
                        <table>
                            <tr>
                                <td>
                                    <asp:Label ID="lblContactFirstName" runat="server" Text="First Name:"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="Label3" runat="server" Text="Mobile No.:"></asp:Label>
                                    &nbsp;+44</td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="TextBoxContactMobileFirstName" runat="server"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBoxContactMobileNumber" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </asp:View>
                    <asp:View ID="ViewContact_Email" runat="server">
                        <table>
                            <tr>
                                <td>
                                    <asp:Label ID="Label6" runat="server" Text="First Name:"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBoxContactEmailFirstName" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label4" runat="server" Text="Home Email Address:"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBoxContactHomeEmailAddress" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label10" runat="server" Text="Work Email Address:"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBoxContactWorkEmailAddress" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </asp:View>
                    <asp:View ID="ViewContactTargetList" runat="server">
                        <asp:RadioButton ID="rdoTargetListAdhoc" runat="server" Text="Adhoc List" GroupName="rdoTargetList"
                            AutoPostBack="true" OnCheckedChanged="rdoTargetListAdhoc_CheckedChanged" Checked="True" />
                        <asp:RadioButton ID="rdoTargetListExisting" runat="server" Text="Existing List" GroupName="rdoTargetList"
                            AutoPostBack="true" OnCheckedChanged="rdoTargetListExisting_CheckedChanged" />
                        <br />
                        <asp:MultiView ID="MultiViewTargetList" runat="server">
                            <asp:View ID="ViewTargetList_Adhoc" runat="server">
                                <table>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label11" runat="server" Text="Adhoc List Name:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="TextBoxTargetListName" runat="server"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                            </asp:View>
                            <asp:View ID="ViewTargetList_Existing" runat="server">
                                <table>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label2" runat="server" Text="An Existing List:"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:DropDownList ID="ddlTargetList" runat="server" Width="220px" AutoPostBack="True"
                                                DataSourceID="SqlTargetList_ds" DataTextField="Name" DataValueField="ID">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                </table>
                            </asp:View>
                        </asp:MultiView>
                        <asp:Label ID="lblRecipientName" runat="server"></asp:Label>
                    </asp:View>
                </asp:MultiView>
                <asp:SqlDataSource ID="SqlTargetList_ds" runat="server" ConnectionString="<%$ ConnectionStrings:ApplicationServices %>"
                    SelectCommand="usp_TargetListSelectByEntityId_DDL" SelectCommandType="StoredProcedure">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="ddlEntity" Name="EntityId" PropertyName="SelectedValue"
                            Type="Int32" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style2">
                Would you like to <strong>Filter</strong> the list?
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style2">
                <asp:RadioButton ID="rdoFilterNone" runat="server" Text="Use No Filter" GroupName="rdoFilter"
                    Checked="True" AutoPostBack="true" OnCheckedChanged="rdoFilterNone_CheckedChanged" />
                &nbsp;
                <asp:RadioButton ID="rdoFilterExisting" runat="server" Text="Use Existing Filter"
                    GroupName="rdoFilter" OnCheckedChanged="rdoFilterExisting_CheckedChanged" AutoPostBack="true" />
                &nbsp;
                <asp:MultiView ID="MultiViewFilter" runat="server">
                    <asp:View ID="ViewFilter_Unfiltered" runat="server">
                        <asp:Label ID="Label7" runat="server" Text="<br/>Unfiltered ..."></asp:Label>
                    </asp:View>
                    <asp:View ID="ViewFilter_Existing" runat="server">
                        <asp:DropDownList ID="ddlCampaignFilter" runat="server" Width="220px" AutoPostBack="True"
                            DataSourceID="SqlCampaignFilter_ds" DataTextField="Name" 
                            DataValueField="Id">
                        </asp:DropDownList>
                        <br />
                    </asp:View>
                </asp:MultiView>
                <asp:SqlDataSource ID="SqlCampaignFilter_ds" runat="server" ConnectionString="<%$ ConnectionStrings:ApplicationServices %>"
                    SelectCommand="usp_CampaignFilterSelectByEntityId_DDL" SelectCommandType="StoredProcedure">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="ddlEntity" Name="EntityId" PropertyName="SelectedValue"
                            Type="Int32" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style2">
                Click <strong>Send Now</strong> to Send Immediately ...</td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Button ID="btnSubmitMessage" runat="server" Text="Send Now" />
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        </table>
</asp:Content>
